using System.Text.Json.Serialization;

namespace IMClient.Model.DTO
{
    public class ContactsResponse
    {
        [JsonPropertyName("code")]
        public string Code { get; set; } = string.Empty;

        [JsonPropertyName("message")]
        public string Message { get; set; } = string.Empty;

        [JsonPropertyName("data")]
        public ContactsData? Data { get; set; }
    }

    public class ContactsData
    {
        [JsonPropertyName("friends")]
        public List<FriendDto> Friends { get; set; } = new();

        [JsonPropertyName("groups")]
        public List<GroupDto> Groups { get; set; } = new();
    }
} 